SWAP

Syntax: SWAP var1,var2     
    or: SWAP var1$,var2$
Location: SWAP, Math Package 

This command exchanges the values of the two variables. The parameters can be either numeric variables (integer and floating point) or strings. Arrays are not allowed by the SWAP variant and both variables have to be the same type.

Constant expressions such as SWAP a%,3 are not allowed.

Unfortunately, it is not possible to SWAP two elements of an array.

The Math Package variant also allows you to swap whole arrays.

CROSS-REFERENCE: 
LET
